package com.bank.util;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.text.SimpleDateFormat;
import java.util.TimeZone;


public class CustomDateJsonMapper extends ObjectMapper {
    private static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public CustomDateJsonMapper() {
        super();
        this.setDateFormat(new SimpleDateFormat(DEFAULT_DATE_FORMAT));
        this.setTimeZone(TimeZone.getTimeZone("GMT+8"));
    }
}
